package com.gscitysfy.cus.drain.modules.reserveplan.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author shenglin
 * @since 2022-11-15 14:28:05
 */
@Getter
@Setter
@TableName("drain_reserve_plan_info")
public class DrainReservePlanInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预案id
     */
    @TableId
    private Long cmKid;

    /**
     * 预案名称
     */
    private String name;


    /**
     * 预案类别code
     */
    private String typeCode;


    /**
     * 预案状态
     */
    private String status;

    /**
     * 管理单位
     */
    private String manageUnit;

    /**
     * 责任人
     */
    private String dutyPerson;

    /**
     * 联系方式
     */
    private String contactWay;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    @TableField(fill = FieldFill.INSERT)
    private String cmCreator;

    private String cmModifier;

    private String cmOrgflag;

    private Long cmRegflag;

    private String cmTenantid;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmAddtime;

    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmUptime;

    private Long cmVersion;

    @TableField(fill = FieldFill.INSERT)
    private Boolean cmUsable;


}
